<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>商品展示</title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <style>

        tr th {
            text-align: center;
        }

        tr {
            text-align: center;
        }
        table {

        }
        #header {
            margin: 10px;
            margin-right: 50px;
            float: right;
        }
    </style>
</head>
<body>
<table class="table table-striped">
    <tr>
        <th>编号</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品描述</th>
    </tr>

    <c:forEach items="${goodsList}" var="goods" varStatus="status">
        <tr>
            <td>${status.count}</td>
            <td>${goods.name}</td>
            <td>￥${goods.price}</td>
            <td>${goods.description}</td>
        </tr>
    </c:forEach>
</table>
<script src="/js/jquery-3.2.1.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</body>
</html>